package com.lvchenglong.task;

import com.lvchenglong.model.User;

public class TaskHighCpu implements Runnable{
    private User user = new User();
    private int i = 0;

    @Override
    public void run() {

        while(true) {
            i = i*1 + 1;
            System.out.println("TaskHighCpu: " + Thread.currentThread().getName() + "value is:" + i);
            if (i > 10000) {
                break;
            }
        }
    }
}
